<?php
/******************************************************************************
 * Author: michal
 * Last modified: 2010-12-14 20:19
 * Filename: general_public_timeline.view.php
 * Extends: base_2col.view.php
 * Description:	广播大厅页面 
 * 继承的变量:
 * $title,$user,$sitename,$lang,$arrowPosition,$extrahead,$lefthtml,$righthtml
 * 新声明的变量:
 * $huati 热门话题列表，不设置则显示 "没有热门话题"
 * 变量列表:
 * $title,$user,$sitename,$lang,$arrowPosition,$extrahead,$lefthtml,$righthtml
 * $huati
 * 已使用的变量:
 * $extrahead,$righthtml,$arrowPosition
 * 子模板可用变量:
 * $title,$user,$sitename,$lang
 * $huati,$lefthtml
******************************************************************************/
$arrowPosition = 530;
?>
<?php
//插入脚本
ob_start();
?>
<style>
	/* 广播大厅样式重置 */
	.right{padding-top:10px;}
	.navarrow {height: 0;width: 0;font-size: 0;line-height: 0;border-color: transparent transparent #fff transparent;_border-color: red red #fff red;_filter: chroma(color = red);border-style: solid;border-width: 8px;}/*重置导航箭头颜色*/
	ul.umain li.umessage .ubody .utop{height:auto;}
	ul.umain li.umessage{border:none;}
	/* 广播大厅顶部轮换消息  */
	.utbodywrapper{position:relative;overflow:hidden;}
	.utbodywrapper .utmask{position:absolute;top:0;left:0;width:100%;height:100%;background:#fff;z-index:2;display:none;}
	.tabbar{background-image:url(style/images/tabbar_bg2.png);}
	.tabbar .toleft{width:255px;}
	.left12{margin-left:5px;padding-left:8px;}
</style>
<script type="text/javascript" src="./js/wbfuncs.js"></script>
<script type="text/javascript" src="./js/guangbodating.js"></script>
<?php
$baseindexextrahead = ob_get_contents();
ob_end_clean();
ob_start();
//左侧DOM

$topicindexstr = @file_get_contents('topicindex.txt');
$topicindexarr = explode('|',$topicindexstr);
$topicindexall = '';
foreach($topicindexarr as $key => $val) {
	$valliarr = explode(',',$val);
	$topicindexall .= '
	<div class="linehead" style="top:1px;">
		<div class="lineheadtitle" title="'.$valliarr[0].'">'.$valliarr[0].'</div>
		<div class="lineheadbg" style="margin-left:78px;"></div>
	</div>';
	unset($valliarr[0]);
	$topicindexli = '';
	foreach($valliarr as $kone => $vone) {
		$topicindexli .= '<li><a href="./index.php?m=topic&k='.$vone.'">'.$vone.'</a></li>';
	}
	$topicindexall .= '<div class="tuijianyonghuwrapper"><ul class="tuijianyonghu">'.$topicindexli.'</ul></div>';
}
$topicindexall = '
<div class="guangbodatingwrapper">
	<div class="guangbodating tocenter">'.$topicindexall.'</div>
</div>
';
echo $topicindexall;

$lefthtml = ob_get_contents();
ob_end_clean();
require_once pathJoin( TEMPLATE_DIR,'base_index.view.php' );
?>
